<div id="header">
    <div class="float_left logo">
        <a href="<?php echo $this->url(array("controller" => "index", "action" => "index")); ?>">
            <img src="<?php echo $this->layoutUrl ?>images/logo.png" alt="" />
        </a>
    </div>
    <div class="float_right" id="loginDiv">
        <?php if (!$this->user) { ?>
            <script type="text/javascript">
                myAds.onSubmitForm('#loginForm', '', false);
            </script>
            <form id="loginForm" onsubmit="myAds.showLoadingIcon('#showLoadingIcon');" method="POST" action="<?php echo $this->url(array("controller" => 'access', "action" => "loginSubmit")); ?>" >
                <div>
                    <input value="Email" onfocus="if(this.value == 'Email') this.value='';" onblur="if(this.value == '') this.value='Email'" name="data[UserName]" type="text" class="txt1 required float_left gray_bo m3r email"/>
                    <input value="Password" onfocus="if(this.value == 'Password') this.value='';" onblur="if(this.value == '') this.value='Password'" name="data[Password]" type="password" class="txt1 required float_left gray_bo"/>
                    <br class="cb" />
                </div>
                <div class="p10t">
    <!--                <p class="float_left">
                        <input name="" type="checkbox" value="" />
                        Remember me</p>-->
                    <p class="float_right">
                        
                        <input id="showLoadingIcon" class="btnLink" type="submit" value="Đăng nhập" />
                        | <a href="<?php echo $this->url(array("controller" => 'access', "action" => "forgotpassword")); ?>" style="text-decoration: none; color: #000000" >Quên mật khẩu</a>
                        <br class="cb" />
                </div>
                
            </form>
        <?php } else { ?>
            <p class="fs16">Xin chào <b class="green"><?php echo $this->user['name']; ?></b></p>
            
            <a class="greenButton" href="<?php echo $this->url(array("controller" => 'access', "action" => "logout")) ?>">
                Đăng xuất
            </a>
        <?php } ?>

    </div>
    <div class="cb"></div>
</div>
<div class="mc bg_menu">
    <div id="tabs" class="float_left">
        <?php echo $this->render('navigation.phtml') ?>        
    </div>
    <a href="<?php echo $this->url(array('controller' => 'campaign', 'action' => 'new') )?>" class="orangeButton float_right" style="padding: 14px 12px">Tạo quảng cáo</a>
    <div class="cb"></div>
</div>